package com.geeklan.smart.data.remote.common;

import com.geeklan.smart.data.model.ApiResponse;
import com.geeklan.smart.data.model.AppProblem;
import com.geeklan.smart.data.model.BannerResponse;
import com.geeklan.smart.data.model.Message;
import com.geeklan.smart.data.model.RequestReadMsg;
import com.geeklan.smart.data.model.VersionResponse;

import java.util.List;
import java.util.Map;

import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.QueryMap;

public interface CommonApiService {
    @GET("msg/getMsgList")
    Call<ApiResponse<List<Message>>> getMsgList(@QueryMap Map<String, Integer> options);
    @POST("msg/readMsg")
    Call<ApiResponse> readMsg(@Body RequestReadMsg requestReadMsg);


    @GET("common/getAppVersion")
    Call<ApiResponse<List<VersionResponse>>> getAppVersion(@QueryMap Map<String, Integer> options);
    @GET("common/getAppProblem")
    Call<ApiResponse<List<AppProblem>>> getAppProblem(@QueryMap Map<String, Integer> options);
    @GET("common/getAppBanner")
    Call<ApiResponse<BannerResponse>> getAppBanner();
}